package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质检单明细(任务)对象 quality_receipts_detail
 *
 * @author ruoyi
 * @date 2023-03-09
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("quality_receipts_detail")
public class QualityReceiptsDetail implements Serializable {

private static final long serialVersionUID=1L;


        /** id */
        @TableId(value = "id")
        @ApiModelProperty(value = "id")
        private Long id;

        /** 状态 0未检验 1不合格 2合格 */
        @Excel(name = "状态 0未检验 1不合格 2合格")
        @ApiModelProperty(value = "状态 0未检验 1不合格 2合格 ")
        private Long status;

        /** 创建时间 */
            @ApiModelProperty(value = "创建时间")
        private Date createTime;

        /** 检验完成时间 */
        @Excel(name = "检验完成时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "检验完成时间")
        private Date finishTime;

        /** 检验人 */
        @Excel(name = "检验人")
        @ApiModelProperty(value = "检验人")
        private Long checkUser;

        /** 检验人 */
        @Excel(name = "检验人名称")
        @ApiModelProperty(value = "检验人名称")
        @TableField(exist = false)
        private String checkUserName;

        /** 质检单id */
        @Excel(name = "质检单id")
        @ApiModelProperty(value = "质检单id")
        private Long receiptsId;

        /** 备注 */
        @Excel(name = "备注")
        @ApiModelProperty(value = "备注")
        private String remark;

        /** 检验项目id */
        @Excel(name = "检验项目id")
        @ApiModelProperty(value = "检验项目id")
        private Long projectId;

        /** 缺陷类型id */
        @ApiModelProperty(value = "缺陷类型id")
        private Long typeId;

        @Excel(name = "缺陷类型")
        @ApiModelProperty(value = "缺陷类型")
        @TableField(exist = false)
        private String typeName;

        @Excel(name = "检验项目名称")
        @ApiModelProperty(value = "检验项目名称")
        @TableField(exist = false)
        private String checkName;

        @Excel(name = "检验项目单位")
        @ApiModelProperty(value = "检验项目单位")
        @TableField(exist = false)
        private String unit;

        @Excel(name = "数据类型 1定性   2定量")
        @ApiModelProperty(value = "数据类型 1定性   2定量")
        @TableField(exist = false)
        private String dataType;

        @Excel(name = "检验项目类别")
        @ApiModelProperty(value = "检验项目类别")
        @TableField(exist = false)
        private String checkType;

}
